home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 24
/
AACD 24.iso
/
AACD
/
Programming
/
proof.lib
/
usr
/
Install-proof.library
next >
Wrap
Text File
|
2001-01-03
|
7KB
|
224 lines
; Install proof.library
; $VER: Install-proof.library V1.1 (3.1.2001)
; © 2000 Paul Huxham
(set #catalog 0) ; english language is default
; Find the current language
(set #i 0)
(while (set #thisfile (select #i
"english" "italiano" "deutsch" "español" "czech" "català" "dansk" "français"
"hrvatski" "nederlands" "norsk" "polski" "português"
"russian" "srpski" "suomi" "svenska" "ÃeÓtina"
""))
(
(if (= @language #thisfile)
(
(set #catalog #i)
(set #catalogname #thisfile)
)
)
(set #i (+ #i 1))
)
)
; Query user for their language, using system as default
(set #catalog
(askchoice
(prompt "Select your native language (language for installer)")
(help @askoptions-help)
(choices "English" "Italiano" "Deutsch" "Español" "Czech")
(default #catalog)
)
)
; Reset #catalogname as the user may have changed the language above
(if (< #catalog 5)
(
(set #catalogname (select #catalog "english" "italiano" "deutsch" "español" "czech"))
)
)
; Some string defaults common for all languages
(set #HOMEPAGE "http://mafeking.scouts.org.au/steeplesoftware")
(set #BLANK "\n")
; ************************** English texts ******************************
(set #INITIAL_MESSAGE
(cat "\nWelcome to the proof.library installer\n\n\n"
"You can obtain updates and other information\nabout proof.library from the homepage\n\n"
#HOMEPAGE)
)
(set #WRONG_INSTALLER_VERSION "\n\n\n\nYou need at least version 42.9 of Installer\nto install proof.library")
(set #WRONG_CPU "\n\n\n\nYou need a 68020 CPU or better\nto use proof.library")
(set #WRONG_OS_VERSION "\n\n\n\nYou need at least AmigaOS V2.0\nto use proof.library")
(set #INSTALLING "\nInstalling")
(set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
(set #UPDATES_AVAILABLE "\nYou can get the latest version\nof proof.library from the homepage")
(set #YES "Yes")
(set #NO "No")
; ************************** Italiano texts *****************************
(if (= #catalog 1)
(
(set #INITIAL_MESSAGE
(cat "\nBenvenuto nell'installazione di proof.library\n\n\n"
"Puoi ottenere gli aggiornamenti, la mailing list e altre informazioni\nsu proof.library alla homepage\n"
#HOMEPAGE)
)
(set #WRONG_INSTALLER_VERSION "\n\n\n\nNecessiti almeno della versione 42.9 dell'Installer\nper installare proof.library")
(set #WRONG_CPU "\n\n\n\nNecessiti di una CPU 68020 o superiore\nper usare proof.library")
(set #WRONG_OS_VERSION "\n\n\n\nNecessiti almeno di AmigaOS V2.0\nper usare proof.library")
(set #INSTALLING "\nInstallazione")
(set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
(set #UPDATES_AVAILABLE "\nAggiornamenti di proof.library e le librarie richieste\n\nsono disponibili sulla home page")
(set #YES "Sì")
(set #NO "No")
)
)
; ************************** Deutsch texts ******************************
(if (= #catalog 2)
(
(set #INITIAL_MESSAGE
(cat "\nWillkommen zur Installation von proof.library\n\n\n"
"Updates, und weitere Information\nüber proof.library gibt es auf der Homepage\n"
#HOMEPAGE)
)
(set #WRONG_INSTALLER_VERSION "\n\n\n\nSie benötigen mind. Version 42.9 des Installers\num proof.library zu installieren")
(set #WRONG_CPU "\n\n\n\nSie benötigen einen 68020 oder höher\num proof.library ausführen zu können")
(set #WRONG_OS_VERSION "\n\n\n\nSie benötigen mind. AmigaOS V2.0\num proof.library ausführen zu können")
(set #INSTALLING "\nInstalliert")
(set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
(set #UPDATES_AVAILABLE "\nUpdates für proof.library und den dazugehörigen libraries\n\ngibt es auf der Homepage")
(set #YES "Ja")
(set #NO "Nein")
)
)
; ************************** Español texts ******************************
(if (= #catalog 3)
(
(set #INITIAL_MESSAGE
(cat "\nBienvenido a la instalación de proof.library\n\n\n"
"Podrás obtener actualizaciones, acceder a listas de correo y tener más información\nsobre proof.library en la página web de Homepage\n"
#HOMEPAGE)
)
(set #WRONG_INSTALLER_VERSION "\n\n\n\nNecesitas al menos la versión 42.9 del Installer\npara instalar proof.library")
(set #WRONG_CPU "\n\n\n\nNecesitas un 68020 o superior\npara utilizar proof.library")
(set #WRONG_OS_VERSION "\n\n\n\nNecesitas al menos AmigaOS V2.0\npara utilizar proof.library")
(set #INSTALLING "\nInstalando")
(set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
(set #UPDATES_AVAILABLE "\nLas actualizaciones de proof.library y librerías necesarias\n\nestán disponibles en la página web de homepage")
(set #YES "Sí")
(set #NO "No")
)
)
; ************************** Czech texts ******************************
(if (= #catalog 4)
(
(set #INITIAL_MESSAGE
(cat "\nVítejte pêi instalaci programu proof.library!\n\n\n"
"Dalîí informace, kontakt na ostatní uùivatele a aktualizace\nmûùete zdarma získat staùením z domovské stránky\n"
#HOMEPAGE)
)
(set #WRONG_INSTALLER_VERSION "\n\n\n\nK instalaci programu proof.library\npotêebujete Installer V42.9 nebo vyîîí")
(set #WRONG_CPU "\n\n\n\nKe spuîtëní programu proof.library\npotêebujete alespoñ CPU68020 nebo lepîí")
(set #WRONG_OS_VERSION "\n\n\n\nProgram proof.library vyùaduje\nke spuîtëní AmigaOS V2.0")
(set #INSTALLING "\nInstalace")
(set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
(set #UPDATES_AVAILABLE "\n\nAktualizace programu proof.library a pêísluîných\n\nknihoven jsou dostupné z domovské stránky")
(set #YES "Ano")
(set #NO "Ne")
)
)
; ************************* Global procedures ***************************
(procedure P_copylib lib destpath newlibname
(
(copylib
(prompt (cat (cat #INSTALLING " ") (fileonly newlibname)))
(help @copylib-help)
(newname newlibname)
(source lib)
(dest destpath)
(confirm)
(optional askuser)
)
)
)
; *********************** proof.library install
(if (< @installer-version (+ (* 65536 42) 9))
(abort #WRONG_INSTALLER_VERSION)
)
(if (< (database "cpu") 68020 )
(abort #WRONG_CPU)
)
(set os_version (/ (getversion "exec.library" (resident)) 65536))
(if (< os_version 37)
(abort #WRONG_OS_VERSION)
)
; All essential version numbers are correct, continue installation
(message #INITIAL_MESSAGE)
(complete 0)
; *********************** Sort out what the user has where
; Establish CPU type
(set #ourcpu (database "cpu"))
(if (= #ourcpu "68020") (set #ourcpu 0))
(if (= #ourcpu "68030") (set #ourcpu 0))
(if (= #ourcpu "68040") (set #ourcpu 1))
(if (= #ourcpu "68060") (set #ourcpu 2))
(complete 0)
; *********************** Install proof.library
(set #cpu_install
(askchoice
(help @askchoice-help)
(prompt #INSTALL_WHICH_VERSION)
(choices "68020" "68040" "68060")
(default #ourcpu)
)
)
(set #entry (select #cpu_install "020" "040" "060" ""))
(set #entry (cat "libs/proof.library_" #entry))
(set @default-dest "Libs:")
(if (= @user-level 2) ;If expert user, ask directory
(
(set @default-dest
(askdir
(prompt #SELECT_INSTALL_DIRECTORY)
(help @askdir-help)
(default @default-dest)
)
)
)
)
(P_copylib #entry @default-dest "proof.library")
(complete 100)
; *********************** Finished installation
(message (cat #UPDATES_AVAILABLE #BLANK #BLANK #HOMEPAGE))